package com.cake.liulanxiangzhu.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName admin_banner
 */
@TableName(value ="admin_banner")
@Data
public class AdminBannerInsertDTO implements Serializable {
    /**
     * 轮播图ID
     */
    @TableId(type = IdType.AUTO)
    private Integer bannerId;

    /**
     * 轮播图名称
     */
    @NotBlank(message = "必须输入轮播图名称")
    private String bannerName;

    /**
     * 轮播图
     */
    @NotBlank(message = "必须输入轮播图")
    private String bannerIcon;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}